<template>
  <header class="header">
    <h1>任务列表</h1>
    <input
      v-model.trim="todoname"
      @keyup.enter="add"
      class="new-todo"
      placeholder="请输入要做的事情"
      autofocus
    />
  </header>
</template>

<script>
export default {
  data () {
    return {
      todoname: ''
    }
  }
}
</script>

<style></style>
